package com.senseuni.da.ui

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.elvishew.xlog.XLog
import com.senseuni.da.databinding.FragmentImageManagerBinding
import com.senseuni.da.ui.dialog.ChoiceListDialog
import com.senseuni.da.ui.dialog.SimpleListItem
import com.senseuni.da.utils.LanguageHelper

class ImageManagerFragment : Fragment() {

    companion object {
        fun newInstance() = ImageManagerFragment()
    }

    private lateinit var binding: FragmentImageManagerBinding

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        binding = FragmentImageManagerBinding.inflate(inflater, container, false)
        return binding.root
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        binding.sivTransferFromUsb.setOnClickListener {
            val activity:SettingActivity = activity as SettingActivity
            activity.switchToFragment(ImageUSBTransferFragment.newInstance())
        }
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
    }

}